package com.tiza.xiaoyoubao.ui.tab;

import com.tianze.library.adapter.pager.IPageFragment;
import com.tiza.xiaoyoubao.R;
import com.tiza.xiaoyoubao.ui.fragment.AccountBindingFragment;
import com.tiza.xiaoyoubao.ui.fragment.AccountWanChengLvFragment;
import com.tiza.xiaoyoubao.ui.fragment.AdvancesOnDoFragment;

/**
 * Created by mapple on 17/4/9.
 */

public enum MainTab implements IPageFragment {
    SETTING(2, R.string.title_setting, AccountBindingFragment.class),
    RUN(0, R.string.title_run, AccountWanChengLvFragment.class),
    SERVICE(1, R.string.title_service, AdvancesOnDoFragment.class);

    private int idx;
    private int resName;
    private Class<?> clz;

    private MainTab(int idx, int resName, Class<?> clz) {
        this.idx = idx;
        this.resName = resName;
        this.clz = clz;
    }

    public int getIdx() {
        return idx;
    }

    public void setIdx(int idx) {
        this.idx = idx;
    }

    @Override
    public int getResName() {
        return resName;
    }

    public void setResName(int resName) {
        this.resName = resName;
    }

    @Override
    public Class<?> getClz() {
        return clz;
    }

    public void setClz(Class<?> clz) {
        this.clz = clz;
    }
}
